package com.twu.biblioteca.Options;

import com.twu.biblioteca.Account;
import com.twu.biblioteca.DataBase.User;

import java.util.Scanner;

public class LogoutOption {
    private final Account account;
    private String name;

    public LogoutOption(Account account) {
        name = "Logout";
        this.account = account;
    }

    public void execute() {
        account.setCurrentUser(null);
        System.out.println("Logout successful");
    }

    public String getName() {
        return name;
    }
}
